package com.luoxin.servicemap.controller;

import com.luoxin.internalcommon.dto.ResponseResult;
import com.luoxin.servicemap.service.ServiceMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 高德地图创建服务
 */
@RestController
@RequestMapping("service")
public class ServiceController {
    @Autowired
    private ServiceMapService serviceMapService;
    @PostMapping("/add")
    public ResponseResult add(String name){
        return serviceMapService.add(name);
    }
}
